package com.wanmait.deliverymangementsystem.mapper;

import com.wanmait.deliverymangementsystem.pojo.Orders;
import com.wanmait.deliverymangementsystem.pojo.Runner;
import com.wanmait.deliverymangementsystem.pojo.Tasks;

import java.util.List;

public interface OrdersMapper {
   void insert(Orders orders);
    void updateOrdersByID(Orders orders, Tasks tasks);

    void deleteByID(Integer id);

    List<Orders> findAll();

    List<Orders> findAllByRunnerID(Runner runner);
    List<Orders>findAllByUserIDandStatus(Integer id);
    List<Orders> findAllByStatusAndCityID(Integer CityID);

      Orders findByID(Integer id);
      void UpdateRunnerIDAndAcceptTime(Orders orders);
      List<Orders>findAllByUserID(Integer id);
      List<Orders> findByRunnerIDAndStatus(Integer runnerid);
      Orders findMoreByID(Integer id);
      void UpdateStatusByID(Integer id,Integer status);
      Integer selectTaskingNumberByRunnerID(Integer id);

      Integer selectAllNumber();

      Integer selectCompleteNumber();

      List<Orders> selectListByUserID(Integer id);

      List<Orders> selectTaskingListByUserID(Integer id);

      Orders findByTaskID(Integer taskID);

      void deleteUserByID(Integer id);

      void deleteRunnerByID(Integer id);

      void deleteAdminByID(Integer id);

    void deleteUserByTaskID(Integer id);

    void deleteAdminByTaskID(Integer id);

    void deleteRunnerByTaskID(Integer id);

    List<Orders> findAllByRunnerIDAndStatus(Integer id);

}